package com.example.acer.damonwork2;

import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    private Button button5;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        button5=(Button)findViewById(R.id.button5);
        ButtonLitener buttonLitener =new ButtonLitener();
        button5.setOnClickListener(buttonLitener);

    }

    class ButtonLitener implements View.OnClickListener {


        @Override
        public void onClick(View view) {

            Intent intent=new Intent(MainActivity.this,MainPage.class);
            startActivity(intent);

        }
    }
}

